package auth

import (
	"galaxy-manage/internal/models"
	"galaxy-manage/internal/pkg/core"
)

func (h *handler) GetCaptcha() core.HandlerFunc {
	return func(c core.Context) {
		result := h.authService.GetCaptchaResult()
		c.Payload(models.Success(result))
	}
}
